Optimal. Leaf size=117 \[ -\frac{1}{2} b d \text{PolyLog}\left (2,-e^{-2 \cosh ^{-1}(c x)}\right )+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )+\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+d \log \left (e^{-2 \cosh ^{-1}(c x)}+1\right ) \left (a+b \cosh ^{-1}(c x)\right )+\frac{1}{4} b c d x \sqrt{c x-1} \sqrt{c x+1}-\frac{1}{4} b d \cosh ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.115941, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.348, Rules used = {5727, 5660, 3718, 2190, 2279, 2391, 38, 52} \[ \frac{1}{2} b d \text{PolyLog}\left (2,-e^{2 \cosh ^{-1}(c x)}\right )+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )-\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+d \log \left (e^{2 \cosh ^{-1}(c x)}+1\right ) \left (a+b \cosh ^{-1}(c x)\right )+\frac{1}{4} b c d x \sqrt{c x-1} \sqrt{c x+1}-\frac{1}{4} b d \cosh ^{-1}(c x) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 5727
Rule 5660
Rule 3718
Rule 2190
Rule 2279
Rule 2391
Rule 38
Rule 52
Rubi steps
\begin{align*} \int \frac{\left (d-c^2 d x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )}{x} \, dx &=\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )+d \int \frac{a+b \cosh ^{-1}(c x)}{x} \, dx+\frac{1}{2} (b c d) \int \sqrt{-1+c x} \sqrt{1+c x} \, dx\\ &=\frac{1}{4} b c d x \sqrt{-1+c x} \sqrt{1+c x}+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )+d \operatorname{Subst}\left (\int (a+b x) \tanh (x) \, dx,x,\cosh ^{-1}(c x)\right )-\frac{1}{4} (b c d) \int \frac{1}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx\\ &=\frac{1}{4} b c d x \sqrt{-1+c x} \sqrt{1+c x}-\frac{1}{4} b d \cosh ^{-1}(c x)+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )-\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+(2 d) \operatorname{Subst}\left (\int \frac{e^{2 x} (a+b x)}{1+e^{2 x}} \, dx,x,\cosh ^{-1}(c x)\right )\\ &=\frac{1}{4} b c d x \sqrt{-1+c x} \sqrt{1+c x}-\frac{1}{4} b d \cosh ^{-1}(c x)+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )-\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+d \left (a+b \cosh ^{-1}(c x)\right ) \log \left (1+e^{2 \cosh ^{-1}(c x)}\right )-(b d) \operatorname{Subst}\left (\int \log \left (1+e^{2 x}\right ) \, dx,x,\cosh ^{-1}(c x)\right )\\ &=\frac{1}{4} b c d x \sqrt{-1+c x} \sqrt{1+c x}-\frac{1}{4} b d \cosh ^{-1}(c x)+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )-\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+d \left (a+b \cosh ^{-1}(c x)\right ) \log \left (1+e^{2 \cosh ^{-1}(c x)}\right )-\frac{1}{2} (b d) \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^{2 \cosh ^{-1}(c x)}\right )\\ &=\frac{1}{4} b c d x \sqrt{-1+c x} \sqrt{1+c x}-\frac{1}{4} b d \cosh ^{-1}(c x)+\frac{1}{2} d \left (1-c^2 x^2\right ) \left (a+b \cosh ^{-1}(c x)\right )-\frac{d \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b}+d \left (a+b \cosh ^{-1}(c x)\right ) \log \left (1+e^{2 \cosh ^{-1}(c x)}\right )+\frac{1}{2} b d \text{Li}_2\left (-e^{2 \cosh ^{-1}(c x)}\right )\\ \end{align*}
Mathematica [A] time = 0.174166, size = 116, normalized size = 0.99 \[ -\frac{1}{4} d \left (2 b \text{PolyLog}\left (2,-e^{-2 \cosh ^{-1}(c x)}\right )+2 a c^2 x^2-4 a \log (x)+2 b \cosh ^{-1}(c x) \left (c^2 x^2-2 \log \left (e^{-2 \cosh ^{-1}(c x)}+1\right )\right )-b c x \sqrt{c x-1} \sqrt{c x+1}-2 b \cosh ^{-1}(c x)^2-2 b \tanh ^{-1}\left (\sqrt{\frac{c x-1}{c x+1}}\right )\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.086, size = 131, normalized size = 1.1 \begin{align*} -{\frac{da{c}^{2}{x}^{2}}{2}}+da\ln \left ( cx \right ) -{\frac{db \left ({\rm arccosh} \left (cx\right ) \right ) ^{2}}{2}}-{\frac{db{\rm arccosh} \left (cx\right ){c}^{2}{x}^{2}}{2}}+{\frac{dbcx}{4}\sqrt{cx-1}\sqrt{cx+1}}+{\frac{bd{\rm arccosh} \left (cx\right )}{4}}+db{\rm arccosh} \left (cx\right )\ln \left ( \left ( cx+\sqrt{cx-1}\sqrt{cx+1} \right ) ^{2}+1 \right ) +{\frac{db}{2}{\it polylog} \left ( 2,- \left ( cx+\sqrt{cx-1}\sqrt{cx+1} \right ) ^{2} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{1}{2} \, a c^{2} d x^{2} + a d \log \left (x\right ) - \int b c^{2} d x \log \left (c x + \sqrt{c x + 1} \sqrt{c x - 1}\right ) - \frac{b d \log \left (c x + \sqrt{c x + 1} \sqrt{c x - 1}\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{a c^{2} d x^{2} - a d +{\left (b c^{2} d x^{2} - b d\right )} \operatorname{arcosh}\left (c x\right )}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - d \left (\int - \frac{a}{x}\, dx + \int a c^{2} x\, dx + \int - \frac{b \operatorname{acosh}{\left (c x \right )}}{x}\, dx + \int b c^{2} x \operatorname{acosh}{\left (c x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{{\left (c^{2} d x^{2} - d\right )}{\left (b \operatorname{arcosh}\left (c x\right ) + a\right )}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]